package com.leaves.leetcode.array.t15_3Sum;

import com.leaves.leetcode.UnitTesting;

import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.Lists;

public class T15Main extends UnitTesting<int[], List<List<Integer>>> {

    Solution solution = new Solution();

    @Override
    protected void generateTestData() {
        List<List<Integer>> list = Lists.newArrayList();
        List<Integer> sublist = Lists.newArrayList(0, 0, 0);
        list.add(sublist);
        testDataList.add(createTestData(new int[]{-1, 0, 1, 2, -1, 4}, Lists.newArrayList(Lists.newArrayList(-1, -1, 2), Lists.newArrayList(-1, 0, 1))));
        testDataList.add(createTestData(new int[]{0, 1, 1}, Lists.newArrayList()));
        testDataList.add(createTestData(new int[]{0, 0, 0}, list));
    }

    @Override
    public List<List<Integer>> run(int[] inputData) {
        return solution.threeSumOfficial(inputData);
    }


}
